﻿#ifndef CENTERWGT_H
#define CENTERWGT_H
#include <QWidget>
#include "AVPlayer.h"

class centerWgt : public QWidget
{
    Q_OBJECT
public:
    explicit centerWgt(QWidget *parent = nullptr);
public slots:
    bool Puase(const bool pause);
    bool Volum(const qreal& v);
signals:
    void sig_process(const double v);
    void sig_repaint(AVFramePtr frame);
protected:
    void InitPlayer();
    virtual void dropEvent(QDropEvent* event);
    virtual void dragEnterEvent(QDragEnterEvent* event);

private:
    std::unique_ptr<AVPlayer> player_;
};
#endif // CENTERWGT_H
